<?php
function custom_explode($value)
{
    $separator = '|';
    if (strpos($value, '|')) {
        $separator = '|';
    } elseif (strpos($value, '>')) {
        $separator = '>';
    } else {
        return $value; // 如果都不包含，则返回原字符串的数组
    }
    return explode($separator, $value);
}

// 测试示例
$values = [
    "apple|banana|cherry",
    "car>bike>bus",
    "singleValue"
];

foreach ($values as $value) {
    print_r(custom_explode($value));
}

?>